import java.util.Scanner;

/**
 * @author zhaoqian
 * @create 2021/8/30 10:40
 */
public class password1 {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            String str = in.nextLine();
            System.out.println(test(str));
        }
    }
    public static String test(String a){


        String s1="";







         for (int i=0;i<a.length();i++){
             char c = a.charAt(i);
             int d = (int)c;
             int g=0;
             boolean flag=false;
             if (65<=d&&d<=90){
                 if (d==90){
                     d=64;
                 }

                 d=d+33;
                  char e =(char)d;
              s1=s1+e;
                    flag=true;
               }

             if (d>=97&&d<=122&&flag==false){
                 if (d >= 97 & d <= 99) {
                     g = 2;
                 }
                 if (d >= 100 & d <= 102) {
                     g = 3;
                 }
                 if (d >= 103 & d <= 105) {
                     g = 4;
                 }
                 if (d >= 106 & d <= 108) {
                     g = 5;
                 }
                 if (d >= 109 & d <= 111) {
                     g = 6;
                 }
                 if (d >= 112 & d <= 115) {
                     g = 7;
                 }
                 if (d >= 116 & d <= 118) {
                     g = 8;
                 }
                 if (d >= 119 & d <= 122) {
                     g = 9;
                 }
                 s1 = s1 + g;
             }
             if (d>=48&&d<=57){
                 char e = (char) d;  
               s1 = s1 + e;
              }

              
         }


        return s1;
    }
}
